import 'dart:convert';

import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/scene_list_entity.g.dart';

@JsonSerializable()
class SceneListEntity {
  int? sceneId;
  String? sceneName;
  String? startTime;
  String? endTime;
  bool? isLock;
  bool? sceneSwitch;

  final lockState = false.obs;
  final turnState = false.obs;
  final isSelected = false.obs;

  SceneListEntity();

  factory SceneListEntity.fromJson(Map<String, dynamic> json) => $SceneListEntityFromJson(json);

  Map<String, dynamic> toJson() => $SceneListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
